<?php slot('newsList') ?>
<div class="ccontentbox">
<div class="ccontent">
        <div class="pealkiri">
                    <h1>Uudised</h1>
                </div>
                <div class="textbox">
                <p>
                <?php foreach($pager->getResults() as $index => $item): ?>
                                <?php $link = get_component('linker','newsItem', array('new' => $item,'linkStruct' => $node)) ?>
                                <?php if($item['picture'] && $index < 3): ?>
                                        <p class="txtstyle4"><img height="89" width="509" alt="Pilt" src="<?php echo @myPicture::getInstance($item['picture'])->thumbnail(509,89,'center')->url()?>"></p>
                                        <p>&nbsp;</p>
                                <?php endif; ?>
                                <a class="title" href="<?php echo $link ?>"><?php echo $item['name'] ?></a>
                                <p class="timestamp"><?php echo date('Y.m.d',strtotime($item['active_start'])) ?></p>
                                <p>&nbsp;</p>
                                <p>&nbsp;</p>
                                <?php if($index < 3): ?>
                                        <p><?php echo $item['description'] ?></p>
                                        <p><a href="<?php echo $link ?>" class="loe"><?php echo __('loe edasi') ?></a></p>
                                        <p>&nbsp;</p>
                                        <p>&nbsp;</p>
                                <?php endif; ?>
                                <div class="breakline"></div>
                                <p>&nbsp;</p>
                        <?php endforeach; ?>
                </p>
                </div>
                <div class="clear"></div>
    </div>
    <div class="ccontentbottom"></div>
</div>
<?php end_slot() ?>